import Client from "../game/battle/client";
import global from "../global";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Index extends cc.Component {

    protected onLoad(): void {
        global.client = null;
        global.mgr = null;
        global.UI = null;
        global.frame = null;
        global.effect = null;
        global.mgrSkill = null;
    }

    protected start(): void {
        //返回index场景
        let obj = {other:"index"}
        global.websocket.send(JSON.stringify(obj));
    }
}
